<template>
    <h1>{{ "child" }}</h1>
    <p>Count: {{ count }}</p>
    <grandson v-on="attrs" v-bind="attrs" />
</template>

<script setup lang="ts">
import { defineProps, useAttrs } from "vue";
import grandson from "./grandson.vue";
defineProps(["count"]);

const attrs = useAttrs(); // 获取 $attrs
console.log(attrs);
</script>

<style scoped></style>
